package com.xml.domain;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Book entity. @author MyEclipse Persistence Tools
 */

public class Book implements java.io.Serializable {

	// Fields

	private Integer id;
	private String isbn;
	private String bookName;
	private String author;
	private Integer price;
	private Date storageTime;
	private Integer state;
	private Set borrows = new HashSet(0);

	// Constructors

	/** default constructor */
	public Book() {
	}

	/** minimal constructor */
	public Book(String isbn, String bookName, String author, Integer price, Date storageTime, Integer state) {
		this.isbn = isbn;
		this.bookName = bookName;
		this.author = author;
		this.price = price;
		this.storageTime = storageTime;
		this.state = state;
	}

	/** full constructor */
	public Book(String isbn, String bookName, String author, Integer price, Date storageTime, Integer state,
			Set borrows) {
		this.isbn = isbn;
		this.bookName = bookName;
		this.author = author;
		this.price = price;
		this.storageTime = storageTime;
		this.state = state;
		this.borrows = borrows;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getIsbn() {
		return this.isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public String getBookName() {
		return this.bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Integer getPrice() {
		return this.price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public Date getStorageTime() {
		return this.storageTime;
	}

	public void setStorageTime(Date storageTime) {
		this.storageTime = storageTime;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Set getBorrows() {
		return this.borrows;
	}

	public void setBorrows(Set borrows) {
		this.borrows = borrows;
	}

	@Override
	public String toString() {
		return "Book [id=" + id + ", isbn=" + isbn + ", bookName=" + bookName + ", author=" + author + ", price="
				+ price + ", storageTime=" + storageTime + ", state=" + state + ", borrows=" + borrows + "]";
	}
	
	

}